﻿namespace Dissemination.MVC.Models
{
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Web.Mvc;

    [MetadataType(typeof(ProgramMetaData))]
    public partial class Program
    {
        [Bind(Exclude = "ProgramID")]
        public class ProgramMetaData
        {
            [Required(ErrorMessage = "The program name is required")]
            [StringLength(256)]
            [DisplayName("Program name")]
            public string ProgramName { get; set; }

            [DisplayName("Default program?")]
            public bool ProgramIsDefault { get; set; }
        }
    }
}
